#ifndef WIDGET_H
#define WIDGET_H

#include <QWidget>
#include "chessboard.h"

QT_BEGIN_NAMESPACE
namespace Ui {
class Widget;
}
QT_END_NAMESPACE

class Widget : public QWidget
{
    Q_OBJECT

public:
    Widget(QWidget *parent = nullptr);
    ~Widget();

public:
    // 显示棋盘
    void showChessBoard();
    // 显示颜色
    void showColor(Piece color);

private:
    Ui::Widget *ui;
    chessBoard* chess_board;
};
#endif // WIDGET_H
